﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;

namespace z.m {
	public class File {
		[Display(Name = "User Name")]
		[Required]
		[StringLength(100, ErrorMessage = "{0} must long form {2} to {1}", MinimumLength = 1)]
		[RegularExpression("[A-Za-z0-9]+", ErrorMessage = "Only alphanumeric")]
		public string Name { get; set; }
		public string OldName { get; set; }
		public File(string name) {
			Name = name;
			OldName = name;
		}
		public File() { }
	}
}